home *** CD-ROM | disk | FTP | other *** search
- depth = 0;
- this.back.gotoAndStop(_root.level);
- go = 0;
- while(go < 10)
- {
- depth++;
- attachMovie("background_bubble","bubble" + depth,depth);
- eval("bubble" + depth).gotoAndStop(_root.level);
- eval("bubble" + depth)._x = random(Stage.width);
- eval("bubble" + depth)._y = random(Stage.height);
- eval("bubble" + depth)._width = random(40) + 2;
- eval("bubble" + depth)._height = eval("bubble" + depth)._width;
- eval("bubble" + depth).moveSpeed = random(2) + 1;
- go++;
- }
- _root.setFrame(this);
- onEnterFrame = function()
- {
- _root.checkFrame(this);
- this.back.gotoAndStop(_root.level);
- num = random(10);
- if(num == 1)
- {
- depth++;
- attachMovie("background_bubble","bubble" + depth,depth);
- eval("bubble" + depth).gotoAndStop(_root.level);
- eval("bubble" + depth)._x = random(Stage.width);
- eval("bubble" + depth)._y = Stage.height + 50;
- eval("bubble" + depth)._width = random(40) + 2;
- eval("bubble" + depth)._height = eval("bubble" + depth)._width;
- eval("bubble" + depth).moveSpeed = random(2) + 1;
- }
- };
-